import SystemCenter from './index';
//基础设置
const BaseSetting = resolve => require(['@/components/Home/SystemManage/BaseSetting'], resolve);
//版本管理
const VersionManage = resolve => require(['@/components/Home/SystemManage/VersionManage'], resolve);
//专业管理
const PositionManage = resolve => require(['@/components/Home/SystemManage/PositionManage'], resolve);
//经纪商管理
const AngentManage = resolve => require(['@/components/Home/SystemManage/AngentManage'], resolve);
//经纪商主页
const AngentManageHome = resolve => require(['@/components/Home/SystemManage/AngentManage/home'], resolve);
////经纪商添加修改
const AngentOperationManage = resolve => require(['@/components/Home/SystemManage/AngentManage/add'], resolve);

export default {
  path: 'menu_system',
  name: 'menu_system',
  component: SystemCenter,
  children: [ //系统设置
    {
      path: 'menu_system_base',
      name: 'menu_system_base',
      component: BaseSetting,
    },
    {
      path: 'menu_system_version',
      name: 'menu_system_version',
      component: VersionManage,
    },
    {
      path: 'menu_system_postion',
      name: 'menu_system_postion',
      component: PositionManage,
    },
    {
      path: 'menu_system_angent',
      name: 'menu_system_angent',
      component: AngentManage,
      redirect:{
        name: 'menu_angent_home',
      },
      children:[
        {
          path: 'menu_angent_home',
          name: 'menu_angent_home',
          component:AngentManageHome
        },
        {
          path: 'menu_operation_angent',
          name: 'menu_operation_angent',
          component:AngentOperationManage
        },
      ]
    }]
}
